Skip to content

Inconsistent padding between sidebar manual lists and listSubPages #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dipikabh opened this issue Apr 25, 2025 · 0 comments
Open

Inconsistent padding between sidebar manual lists and listSubPages #202

dipikabh opened this issue Apr 25, 2025 · 0 comments
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@dipikabh
Copy link
Contributor

What information was incorrect, unhelpful, or incomplete?

Sidebar list items have padding-left: .5rem; when listSubPages is used in the sidebar YAML.

In contrast, there's no padding when the items are manually ordered (this is what's live on the website at the moment https://developer.mozilla.org/en-US/docs/Web/HTML).

Padding when using listSubPages No padding when ordering manually
sidebar-bug-padding-listsubpages sidebar-bug-padding-manual

What did you expect to see?

Same or no padding irrespective of the method used to generate the sidebar list items

Do you have any supporting links, references, or citations?

Check out this demo commit that uses type: listSubPages to view the padding in action: dipikabh/content@dea9711.

Do you have anything more you want to share?

No response

@dipikabh dipikabh added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant